package org.example.eurekaopenfeignclient.service;

import org.example.eurekaopenfeignclient.entity.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

@Service

@FeignClient(name="provider",path="/product",contextId="product")
public interface ProductService{
    @RequestMapping(value = "/get1",method = RequestMethod.GET)
    public  String get_product(@RequestParam("name") String name, @RequestParam("price") float price) ;
    @RequestMapping(value = "/get2",method = RequestMethod.POST)
    public  String get_product(@RequestBody Product product);
    @RequestMapping(value = "/get3/{name}/{price}/{date}", method = RequestMethod.GET)
public  String get_product(@PathVariable String name, @PathVariable String price, @PathVariable String date) ;


}